import { post, get,post_json } from '@/http/axios'
export default {
  namespaced: true,
  state: {
      productData:[]
  },
  mutations: {
       SET_PRODUCTDATA(state, data){
         state.productData = data;
         
       },
       GET_PRODUCTDATA(state){
         return state.productData;
      }
  },
  actions: {
        
     async getProductDataVuex({commit},param){
        let res = await get('/product/pageQuery',param)
        commit('SET_PRODUCTDATA',res.data.data.list)
      //  console.log(res.data.data.list)
     }

  }
}